Field Summary |
static boolean |
isOn
|
Constructor Summary |
DataStack(Tunnel _tunnel)
Constructs DataStack object for Tunnel object |
Method Summary |
static void |
destroy()
destroys all opened DataStack objects |
static DataStack |
getDataStack(Tunnel tunnel)
The factory for DataStack instantiation. |
java.lang.Object[] |
getResult()
Returns results for performed requests |
void |
init()
Initializes the DataStack object. |
boolean |
isSending()
returns flag showing if sending of package is in progress |
void |
push(Marshalable data)
Pushes next request to stack and checks flags that may force a sending. |
void |
send()
Performs sending of package to Tunnel server. |
void |
start()
Starts execution of thread that controls sending of package of requests. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isOn
public static boolean isOn
DataStack
public DataStack(Tunnel _tunnel)
- Constructs DataStack object for Tunnel object
- Parameters:
tunnel
- object of Tunnel class
destroy
public static void destroy()
- destroys all opened DataStack objects
getDataStack
public static DataStack getDataStack(Tunnel tunnel)
- The factory for DataStack instantiation.
Only one DataStack may be created for certain server URL.
- Parameters:
serverUrl
- URL string of remote host.tunnel
- object
init
public void init()
- Initializes the DataStack object.
getResult
public java.lang.Object[] getResult()
- Returns results for performed requests
isSending
public boolean isSending()
- returns flag showing if sending of package is in progress
push
public void push(Marshalable data)
throws TunnelException
- Pushes next request to stack and checks flags that may force a sending.
- Parameters:
reuest
- data for performing remote call. The data will be appended to package.
start
public void start()
- Starts execution of thread that controls sending of package of requests.
- Overrides:
start
in class ThreadSupport
send
public void send()
- Performs sending of package to Tunnel server.
Copyright ⌐ JProxy LLC. All Rights Reserved.